package com.zhang.gateway.remote.fallback;

import com.zhang.gateway.remote.AuthRemote;
import com.zhang.infrastructure.api.model.authority.CheckTokenReqDTO;
import com.zhang.infrastructure.api.model.authority.GetUserReqDTO;
import com.zhang.infrastructure.api.model.authority.TokenReqDTO;
import com.zhang.infrastructure.api.model.authority.UserResDTO;
import com.zhang.infrastructure.model.KingHoodResponseVO;
import com.zhang.infrastructure.model.token.UserDTO;
import org.springframework.stereotype.Component;

/**
 * description
 *
 * @author zhangFanJun
 * @date 2023-12-12 15:35
 **/
@Component
public class AuthRemoteFallback implements AuthRemote {

    @Override
    public KingHoodResponseVO openToken(TokenReqDTO in) {
        return KingHoodResponseVO.fallback();
    }

    @Override
    public KingHoodResponseVO<Boolean> validateToken(CheckTokenReqDTO in) {
        return KingHoodResponseVO.fallback();
    }

    @Override
    public KingHoodResponseVO<UserDTO> userDetail() {
        return KingHoodResponseVO.fallback();
    }

    @Override
    public KingHoodResponseVO<UserResDTO> user() {
        return KingHoodResponseVO.fallback();
    }

    @Override
    public KingHoodResponseVO<UserResDTO> getUser(GetUserReqDTO in) {
        return KingHoodResponseVO.fallback();
    }
}
